package com.foreknow.demo9;

/**
 * 子类负责实现抽象类当中所有的抽象方法
 */
public class PersonSub extends Person implements B,C{
    @Override
    public void eat() {
        System.out.println("eat......");
    }

    @Override
    public void study() {
        System.out.println("study......");
    }

    @Override
    public void sleep() {
        System.out.println("sleep......");
    }

    @Override
    public void game() {
        System.out.println("game......");
    }

    @Override
    public void method3() {
        System.out.println("method3......");
    }

    @Override
    public void method4() {
        System.out.println("method4......");
    }

    public static void main(String[] args) {
        PersonSub s = new PersonSub();
        s.eat();
        s.method3();
        s.method4();
    }


}
















